﻿using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;
using static SingleUserMall.Authorization.Users.User;

namespace SingleUserMall.Adverts
{
    public class Advert :  FullAuditedEntity<long>
    {
        /// <summary>
        /// 视频名称
        /// </summary>
        [Required, MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 视频内容
        /// </summary>
        /// 
        [Required]
        public string Content { get; set; }
        /// <summary>
        /// 视频针对性别
        /// </summary>
        public string AdvertSex { get; set; }
        /// <summary>
        /// 视频针对年龄
        /// </summary>
        public string AdvertAge { get; set; }
        /// <summary>
        /// 视频针对收入高低
        /// </summary>
        public UserIncomeStatus AdvertIncome { get; set; }
        /// <summary>
        /// 观看视频红包金额
        /// </summary>
        public decimal RedPacketAmount { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsUse { get; set; }
        /// <summary>
        /// 观看次数
        /// </summary>
        public int WatchTimes { get; set; }
    }
}
